<template>
	<view class="container">
		<view class="tui-mybg-box">
			<view class="tui-header-center">
				<image src="/static/img/def_touxiang.png" class="tui-avatar" @tap="href(3)"></image>
				<view class="tui-info">
					<view class="tui-nickname">
						呼噜猪zzZ
						<!-- <image src="/static/images/mall/my/icon_vip_3x.png" class="tui-img-vip"></image> -->
					</view>
					<view class="tui-explain">这家伙很懒…</view>
				</view>
				<!-- <view class="tui-login" v-if="!isLogin" @tap="login">
					<text>登录/注册</text>
					<tui-icon name="arrowright" color="#fff" :size="36" unit="rpx"></tui-icon>
				</view> -->

			</view>
		</view>
		<view class="tui-content-box">
			<view class="tui-balance">
				<view class="tui-info">
					<view class="tui-assets-text">余额</view>
					<view class="tui-flex-wrap">
						<view class="tui-assets-num">￥ 0</view>
						<view class="tui-assets-text"></view>
					</view>
				</view>
			</view>

			<view class="tui-driver-box">
				<view class="tui-info">
					<view class="tui-tool-text">我的车辆</view>
					<view class="tui-tool-text">车牌号：沪A27388</view>
					<view class="tui-tool-text">长宽高：10m*9m*22m</view>
				</view>
			</view>


		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				isLogin: true
			}
		},
		methods: {

		}
	}
</script>

<style>
	.container {
		width: 100%;
		padding-bottom: 100rpx;
		background: #fff;
	}

	.tui-header-box {
		width: 100%;
		padding: 0 30rpx 0 20rpx;
		box-sizing: border-box;
		position: fixed;
		top: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		height: 32px;
		transform: translateZ(0);
		z-index: 9999;
	}

	.tui-header-icon {
		min-width: 120rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.tui-mybg-box {
		width: 100%;
		height: 184rpx;
		position: relative;
	}

	.tui-header-center {
		position: absolute;
		width: 100%;
		height: 128rpx;
		left: 0;
		top: 20rpx;
		padding: 0 30rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
	}

	.tui-avatar {
		flex-shrink: 0;
		width: 128rpx;
		height: 128rpx;
		display: block;
	}

	.tui-info {
		width: 60%;
		padding-left: 30rpx;
	}

	/* .tui-login {
		width: 60%;
		padding-left: 30rpx;
		font-size: 32rpx;
		line-height: 32rpx;
		color: #fff;
		display: flex;
		align-items: center;
	} */

	.tui-nickname {
		font-size: 30rpx;
		font-weight: 500;
		color: #333;
		display: flex;
		align-items: center;
	}


	.tui-img-vip {
		width: 56rpx;
		height: 24rpx;
		margin-left: 18rpx;
	}

	.tui-explain {
		width: 80%;
		font-size: 24rpx;
		font-weight: 400;
		color: #333;
		opacity: 0.75;
		padding-top: 8rpx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.tui-content-box {
		width: 100%;
		padding: 0 30rpx;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
	}

	.tui-box {
		width: 100%;
		background: #1EB75E;
		box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.1);
		border-radius: 10rpx;
		overflow: hidden;
	}
	
	.tui-driver-box {
		width: 100%;
		background: #FAFAFA;
		box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.1);
		border-radius: 10rpx;
		overflow: hidden;
	}

	.tui-tool-text {
		font-size: 26rpx;
		font-weight: 400;
		color: #666;
		padding-top: 4rpx;
	}

	.tui-assets-num {
		font-size: 50rpx;
		font-weight: 500;
		color: #fff;
		position: relative;
	}

	.tui-assets-text {
		font-size: 24rpx;
		font-weight: 400;
		color: #fff;
		padding-top: 6rpx;
	}

	.tui-balance {
		height: 200rpx;
		margin-top: 20rpx;
		background: #1EB75E;
		border-radius: 10rpx;
	}

	.tui-flex-wrap {
		flex-wrap: wrap;
		height: auto;
		padding-bottom: 30rpx;
	}
</style>
